package com.megvii.corelib.filechooser;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by linyue on 16/3/14.
 */
public class FileChooserLayoutParam implements Serializable
{
    public int layoutId;

    public int itemLayoutId;

    public int itemTextResId;

    public List<String> roots;

    public List<String> postfixes;

    public FileChooserLayoutParam(int layoutId, int itemLayoutId, int itemTextResId, String root,
            List<String> postfixes)
    {
        super();
        this.layoutId = layoutId;
        this.itemLayoutId = itemLayoutId;
        this.itemTextResId = itemTextResId;
        this.roots = new ArrayList<>();
        this.roots.add(root);
        this.postfixes = postfixes;
    }

    public FileChooserLayoutParam(int layoutId, int itemLayoutId, int itemTextResId,
            List<String> roots, List<String> postfixes)
    {
        super();
        this.layoutId = layoutId;
        this.itemLayoutId = itemLayoutId;
        this.itemTextResId = itemTextResId;
        this.roots = roots;
        this.postfixes = postfixes;
    }
}
